<?php
###############################################################################################
#         Copyright (c) 2012 Ellucid Studios. 
#         This software is the proprietary information of  Ellucid Studios
#         All Right Reserved.
#         Repository path:    $HeadURL: http://ellucid-studios.googlecode.com/svn/trunk/var/www/mydroid/global.php $
#         Last committed:      $Revision: 27 $
#         Last changed by:       $Author: davidjmorin@gmail.com $
#         Last changed date   :    $Date: 2014-11-26 01:17:42 +0000 (Wed, 26 Nov 2014) $ 
#         ID:                                   $Id: global.php 27 2014-11-26 01:17:42Z davidjmorin@gmail.com $
################################################################################################

error_reporting(E_ALL & ~E_NOTICE);

require_once('./includes/class_bootstrap.php');

define('VB_AREA', 'Forum');

$bootstrap = new vB_Bootstrap_Forum();
$bootstrap->datastore_entries = $specialtemplates; 
$bootstrap->cache_templates = vB_Bootstrap::fetch_required_template_list(
	empty($_REQUEST['do']) ? '' : $_REQUEST['do'],
	$actiontemplates, $globaltemplates
);

$bootstrap->bootstrap();

// Deprecated as of release 4.0.2, replaced by global_bootstrap_init_start
($hook = vBulletinHook::fetch_hook('global_start')) ? eval($hook) : false;

$bootstrap->load_style();

// legacy code needs this
$permissions = $vbulletin->userinfo['permissions'];

// Deprecated as of release 4.0.2, replaced by global_bootstrap_complete
($hook = vBulletinHook::fetch_hook('global_setup_complete')) ? eval($hook) : false;

if (!empty($db->explain))
{
	$aftertime = microtime(true) - TIMESTART;
	echo "End call of global.php: $aftertime\n";
	echo "\n<hr />\n\n";
}

/*======================================================================*\
|| ####################################################################
|| # Downloaded: 06:57, Thu Oct 10th 2013
|| # CVS: $RCSfile$ - $Revision: 27 $
|| ####################################################################
\*======================================================================*/
